

//
//  EditBankCardFooterView.m
//  LuxuryGoods
//
//  Created by DCQ on 2018/5/25.
//  Copyright © 2018年 Future. All rights reserved.
//

#import "EditBankCardFooterView.h"
#import "LGImageManagerIO.h"
@interface  EditBankCardFooterView()
@property (weak, nonatomic) IBOutlet UIButton *btn;
@end
@implementation EditBankCardFooterView
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    UIImage * btnImg = [LGImageManagerIO createGradualColorImage:self.btn.size startColor:UIColorFromRGB(0xE1CFA9) endColor:UIColorFromRGB(0xC1B284)];
    [self.btn setBackgroundImage:btnImg forState:UIControlStateNormal];
    [self.btn addTarget:self action:@selector(btnAction) forControlEvents:UIControlEventTouchUpInside];
}

- (void)btnAction{
    if (self.btnBlock) {
        self.btnBlock();
    }
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
